<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="car.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>車のマスタメンテナンス</title>
	</head>
		<body>
		<table border="1">
		<tr>
			<th>ナンバー</th>
			<th>車名</th>
			<th>メーカー</th>
		</tr>
		<tr>
			<%
			int size = CarList.size();
			for(int i=0 ; i<size ;i++){
				Car car = CarList.get(i);
			%>
			<tr>
				<td>
					<a href="edit.jsp?index=<%=i %>">
					<%= car.getNumber() %>
					</a>
				</td>
				<td><%= car.getName() %></td>
				<td><%= car.getMaker() %></td>
			</tr>
			<%
			}
			%>
		</tr>
		</table>
		<a href="new.html">登録
		</a>
		<p>
			<a href="EditServlet">EditServlet</a>
		</p>
		<p>
			<a href="<%=request.getContextPath()%>/EditServlet">EditServlet</a>
		</p>
		</body>
</html>